package run.siyuan.jdk.算法_4版.章节练习;

import org.junit.jupiter.api.Test;
import run.siyuan.jdk.算法_4版.排序.SelectionUtil;

/**
 * @className: Chapter2
 * @Description: TODO 第二章 排序
 * @author: siyuan
 * @date: 2022/12/14 16:34
 */
public class Chapter2 {

    @Test
    public void test1(){
        Integer[] a = {1231, 231, 23, 12, 323, 4, 3, 4252, 4, 31, 24, 56, 566 , 54634, 45, 3, 2, 12};
        SelectionUtil.sortAsc(a);
        SelectionUtil.show(a);

        a = new Integer[]{1231, 231, 23, 12, 323, 4, 3, 4252, 4, 31, 24, 56, 566 , 54634, 45, 3, 2, 12};
        SelectionUtil.sortDesc(a);
        SelectionUtil.show(a);

    }




}
















